package com.shelpe.services.simbasync.dao;

import com.shelpe.services.simbasync.model.RptCustomer;
import com.shelpe.services.simbasync.model.RptCustomerExample;
import com.shelpe.services.simbasync.model.RptCustomerKey;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RptCustomerMapper {
    int countByExample(RptCustomerExample example);

    int deleteByExample(RptCustomerExample example);

    int deleteByPrimaryKey(RptCustomerKey key);

    int insert(RptCustomer record);
    
    int insertBatch(List<RptCustomer> list);

    int insertSelective(RptCustomer record);

    List<RptCustomer> selectByExample(RptCustomerExample example);

    RptCustomer selectByPrimaryKey(RptCustomerKey key);

    int updateByExampleSelective(@Param("record") RptCustomer record, @Param("example") RptCustomerExample example);

    int updateByExample(@Param("record") RptCustomer record, @Param("example") RptCustomerExample example);

    int updateByPrimaryKeySelective(RptCustomer record);

    int updateByPrimaryKey(RptCustomer record);
    
    Date getLastTimeFromRpt(Long userId);
}